import axios from "../utils/axios";

// 获取月票周信息
export function getMonthData(stock) {
    return axios.get('/month/'+stock)
}

//  月涨跌统计
export function getMonthPctStat(month) {
    if (month) {
        return axios.get('/month/monthPctStat?month=' + month)
    } else {
        return axios.get('/month/monthPctStat')
    }
}

// 获取月票周信息
export function getMultiMonthData(stocks) {
    return axios.get('/month/multiStock?stocks='+stocks)
}

// 获取月票周信息
export function getIndustryData(industry) {
    return axios.get('/month/industry/'+industry)
}

export function getStat() {
    return axios.get("/month/stat")
}

export function getMonthLpDecrease(month) {
    if (month) {
        return axios.get('/month/lpDecrease?month=' + month)
    } else {
        return axios.get('/month/lpDecrease')
    }
}